package demo08;

/**
 * @author: WangPeng
 * @createTime: 2022/11/01 22:12
 * @description:
 * @version: v1.0
 */
public class Test01 {
    public static void main(String[] args) {
        BankCard bankCard = new BankCard();
        Boy boy = new Boy(bankCard);
        boy.setName("李白");
        Girl girl = new Girl(bankCard);
        girl.setName("王昭君");
        boy.start();
        girl.start();
    }
}
